import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/post",
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login.vue"),
  },
  {
    path: "/jobDetails",
    name: "jobDetails",
    component: () => import("@/views/job/jobDetails.vue"),
  },
  {
    path: "/list",
    name: "list",
    component: () => import("@/views/job/list.vue"),
  },
  {
    path: "/post",
    name: "PostList",
    component: () => import("@/views/job/PostList.vue"),
  },
  {
    path: "/postecard",
    name: "PostListEcard",
    component: () => import("@/views/job/PostListEcard.vue"),
  },
  {
    path: "/company",
    name: "company",
    component: () => import("@/views/company/index.vue"),
  },
  {
    path: "/top/list",
    name: "topnews",
    component: () => import("@/views/top/PostList.vue"),
  },
  {
    path: "/top/details",
    name: "topDetails",
    component: () => import("@/views/top/jobDetails.vue"),
  },
  // {//个人中心 在线简历
  // 	path: '/person',
  // 	name: 'Person',
  // 	component: () => import('../views/resume/Person.vue'),
  // 	meta: {
  // 		title: '黄河人才网-在线简历',
  // 		content:{
  // 			keywords:'黄河人才网-在线简历',
  // 			description:'黄河人才网-在线简历',
  // 		},
  // 	}
  // },
  // {//个人中心 在线简历
  // 	path: '/person/resume',
  // 	name: 'PersonResume',
  // 	component: () => import('../views/resume/PersonResume.vue'),
  // 	meta: {
  // 		title: '黄河人才网-在线简历',
  // 		content:{
  // 			keywords:'黄河人才网-在线简历',
  // 			description:'黄河人才网-在线简历',
  // 		},
  // 	}
  // },
  // {//个人中心 预览简历
  // 	path: '/person/resumeLook',
  // 	name: 'PersonResumeLook',
  // 	component: () => import('../views/resume/PersonResumeLook.vue'),
  // 	meta: {
  // 		title: '黄河人才网-预览简历',
  // 		content:{
  // 			keywords:'黄河人才网-预览简历',
  // 			description:'黄河人才网-预览简历',
  // 		},
  // 	}
  // },
  // {//个人中心 英文简历
  // 	path: '/person/resumeEn',
  // 	name: 'PersonResumeEn',
  // 	component: () => import('../views/resume/PersonResumeEn.vue'),
  // 	meta: {
  // 		title: '黄河人才网-英文简历',
  // 		content:{
  // 			keywords:'黄河人才网-英文简历',
  // 			description:'黄河人才网-英文简历',
  // 		},
  // 	}
  // },
  // {//个人中心 预览英文简历
  // 	path: '/person/resumeEnLook',
  // 	name: 'PersonResumeEnLook',
  // 	component: () => import('../views/resume/PersonResumeEnLook.vue'),
  // 	meta: {
  // 		title: '黄河人才网-预览简历',
  // 		content:{
  // 			keywords:'黄河人才网-预览简历',
  // 			description:'黄河人才网-预览简历',
  // 		},
  // 	}
  // },
  {
    //个人中心 在线简历
    path: "/person/simple/resume",
    name: "PersonSimpleResume",
    component: () => import("../views/resume/PersonSimpleResume.vue"),
    meta: {
      title: "黄河人才网-在线简历",
      content: {
        keywords: "黄河人才网-在线简历",
        description: "黄河人才网-在线简历",
      },
    },
  },
  {
    //个人中心 在线简历 顶端版，逻辑差太多，所以分开来搞
    path: "/top/resume",
    name: "PersonSimpleResumeTop",
    component: () => import("../views/resume/PersonSimpleResumeTop.vue"),
    meta: {
      title: "黄河人才网-在线简历",
      content: {
        keywords: "黄河人才网-在线简历",
        description: "黄河人才网-在线简历",
      },
    },
  },
  // {//个人中心 投递状态
  // 	path: '/person/sendStatus',
  // 	name: 'PersonSendStatus',
  // 	component: () => import('../views/resume/PersonSendStatus.vue'),
  // 	meta: {
  // 		title: '黄河人才网-个人中心',
  // 		content:{
  // 			keywords:'黄河人才网-个人中心',
  // 			description:'黄河人才网-个人中心',
  // 		},
  // 	}
  // },
  // {//个人中心 消息中心 应聘进度通知
  // 	path: '/person/message',
  // 	name: 'PersonMessage',
  // 	component: () => import('../views/resume/PersonMessage.vue'),
  // 	meta: {
  // 		title: '黄河人才网-消息中心',
  // 		content:{
  // 			keywords:'黄河人才网-消息中心',
  // 			description:'黄河人才网-消息中心',
  // 		},
  // 	}
  // },
  {
    path: "*",
    name: "lost",
    component: () => import("@/views/404.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
